/*
 * 用户相关的请求模块
 */
import request from "../utils/request.js"
/*
 * 用户注册
 */
export const userRegister = (user) => {
  return request({
    method: 'POST',
    url: '/api/user/register',
    data: {
      user
    }
  })
}
/*
 * 用户登录
 */
export const userLogin = (user) => {
  return request({
    method: 'POST',
    url: '/api/users/login',
    data: {
      user
    }
  })
}
